import { defineConfig } from 'wxt';

// See https://wxt.dev/api/config.html
export default defineConfig({
  modules: ['@wxt-dev/module-vue'],
  manifest: {
    update_url: 'http://192.168.50.79:3333/update.xml',
    version: '0.0.2',
    permissions: ['storage'],
    options_ui: {
      page: 'entrypoints/options/index.html',
      open_in_tab: true
    },
    web_accessible_resources: [
      {
        resources: ['icon/*.svg', 'wxt.svg', 'vue.svg'],
        matches: ['<all_urls>']
      }
    ],
    action: {
      default_icon: {
        // "16": "icon/chat-icon.svg",
        // "32": "icon/chat-icon.svg",
        // "48": "icon/chat-icon.svg",
        // "128": "icon/chat-icon.svg"
        "16": "wxt.svg",
        "32": "wxt.svg",
        "48": "wxt.svg",
        "128": "wxt.svg"
      }
    }
  },
});
